import request from '@/utils/request'


export function listOrder(data) {
  return request({
    url: '/ygOrder/selOrderAll',
    method: 'post',
    data
  })
}

export function detailOrder(id) {
  return request({
    url: '/order/detail',
    method: 'get',
    params: { id }
  })
}

export function shipOrder(data) {
  return request({
    url: '/order/ship',
    method: 'post',
    data
  })
}

export function refundOrder(data) {
  return request({
    url: '/order/refund',
    method: 'post',
    data
  })
}

export function deleteOrder(data) {
  return request({
    url: '/ygOrder/delete',
    method: 'post',
    data
  })
}

export function replyComment(data) {
  return request({
    url: '/order/reply',
    method: 'post',
    data
  })
}

// export function listChannel(id) {
//   return request({
//     url: '/order/channel',
//     method: 'get'
//   })
// }
